package com.micromall.common.payment.dto.query.bytime.resp;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;

/**
 * Created by DanteFung on 2017/7/4.
 */
@JsonRootName("OrderRecord")
public class OrderRecord {

    @JsonProperty("MerBillNo")
    private String merBillNo;

    @JsonProperty("IpsBillNo")
    private String ipsBillNo;

    @JsonProperty("TradeType")
    private String tradeType;

    @JsonProperty("Currency")
    private String currency;

    @JsonProperty("Amount")
    private String amount;

    @JsonProperty("MerBillDate")
    private String merBillDate;

    @JsonProperty("IpsBillTime")
    private String ipsBillTime;

    @JsonProperty("Attach")
    private String attach;

    @JsonProperty("Status")
    private String status;

    public String getMerBillNo() {
        return merBillNo;
    }

    public void setMerBillNo(String merBillNo) {
        this.merBillNo = merBillNo;
    }

    public String getIpsBillNo() {
        return ipsBillNo;
    }

    public void setIpsBillNo(String ipsBillNo) {
        this.ipsBillNo = ipsBillNo;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getMerBillDate() {
        return merBillDate;
    }

    public void setMerBillDate(String merBillDate) {
        this.merBillDate = merBillDate;
    }

    public String getIpsBillTime() {
        return ipsBillTime;
    }

    public void setIpsBillTime(String ipsBillTime) {
        this.ipsBillTime = ipsBillTime;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {

        this.attach = "<![CDATA["+attach+"]]>";
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "OrderRecord{" +
                "merBillNo='" + merBillNo + '\'' +
                ", ipsBillNo='" + ipsBillNo + '\'' +
                ", tradeType='" + tradeType + '\'' +
                ", currency='" + currency + '\'' +
                ", amount='" + amount + '\'' +
                ", merBillDate='" + merBillDate + '\'' +
                ", ipsBillTime='" + ipsBillTime + '\'' +
                ", attach='" + attach + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
